<?php
class helloRouter extends ezcMvcRouter
{
    public function createRoutes()
    {
        return array(
        	//be careful, order is important !
            new ezcMvcRailsRoute( '/convertDb', 'ConvertController', 'convert' ),
            new ezcMvcRailsRoute( '/list', 'NddListController', 'list' ),
            new ezcMvcRailsRoute( '/search', 'NddListController', 'search' ),
            new ezcMvcRailsRoute( '/search/:word', 'NddListController', 'search' ),
            new ezcMvcRailsRoute( '/export', 'NddListController', 'export' ),
            new ezcMvcRailsRoute( '/create', 'NddManageController', 'create' ),
            new ezcMvcRailsRoute( '/save', 'NddManageController', 'createNdd' ),
            new ezcMvcRailsRoute( '/save/:nddId', 'NddManageController', 'updateNdd' ),
            new ezcMvcRailsRoute( '/edit/:nddId', 'NddManageController', 'edit' ),
            new ezcMvcRailsRoute( '/confirm-delete/:nddId', 'NddManageController', 'edit' ),
            new ezcMvcRailsRoute( '/delete/:nddId', 'NddManageController', 'deleteNdd' ),
            new ezcMvcRailsRoute( '/', 'NddListController', 'list' ),
            
        );
    }
}
?>
